package com.avic.rong.api;

import com.avic.rong.bean.BookList;
import com.example.minato.minastore.BaseApi;
import com.example.minato.minastore.listener.HttpOnNextListener;
import com.trello.rxlifecycle2.components.support.RxAppCompatActivity;

import io.reactivex.Observable;

/**
 * Creater: Created by wangyz on 2018/12/11.
 * Email: 936804097@qq.com
 */
public class ExampleApi extends BaseApi<BookList> {


    public ExampleApi(RxAppCompatActivity rxAppCompatActivity, HttpOnNextListener listener) {
        super(rxAppCompatActivity, listener);
    }


    @Override
    public Observable getObservable(retrofit2.Retrofit retrofit) {
        HttpUserService service = retrofit.create(HttpUserService.class);
        return service.articleCollect();
    }
}





